package com.example.myroom;

import androidx.room.Dao;
import androidx.room.Delete;
import androidx.room.Insert;
import androidx.room.Query;
import androidx.room.Update;

import java.util.List;
@Dao
public interface WordDao {
    @Insert
    void insertWord(Word... words);
    @Update
    void updateWord(Word...words);
    @Delete
    void deleteWords(Word... words);
    @Query("DELETE FROM WORD")
    void deleteAllWord();
    @Query("SELECT * FROM WORD")
    List<Word>selectWord();
}
